#ifndef HTTP_SESSION_HANDLER_H
#define HTTP_SESSION_HANDLER_H

#include "Poco/Net/HTTPServer.h"
#include "Poco/Net/HTTPServerRequest.h"
#include "Poco/Net/HTTPServerResponse.h"
#include "Poco/Net/HTTPClientSession.h"
#include "Poco/Net/HTTPRequest.h"
#include "Poco/Net/HTTPRequestHandler.h"
#include "Poco/Net/HTTPResponse.h"
#include "Poco/Net/MessageHeader.h"
#include "Poco/URI.h"
#include "Poco/Exception.h"
#include "Poco/SharedPtr.h"
#include <iostream>

class HTTPSessionHandler : public Poco::Net::HTTPRequestHandler {
public:
    HTTPSessionHandler(const std::string& targetHost, int targetPort);
    void handleRequest(Poco::Net::HTTPServerRequest& request, Poco::Net::HTTPServerResponse& response) override;

private:
    std::string _targetHost;
    int _targetPort;
};

#endif // HTTP_SESSION_HANDLER_H